@extends('admin.layout')
@section('title',$title)
@section('content')
    <div class="content-wrapper">
        <!-- Content Header (Page header) -->
        <section class="content-header">
            <h1>
                友情链接管理
            </h1>
            <ol class="breadcrumb">
                <li><a href="#"><i class="fa fa-dashboard"></i> 友情链接管理</a></li>
                {{--<li><a href="#"></a></li>--}}
                <li class="active">友情链接编辑</li>
            </ol>
        </section>

        <!-- Main content -->
        <section class="content">
            <div class="row">
                <!-- left column -->
                <div class="col-md-12">
                    <!-- general form elements -->
                    <div class="box box-primary">
                        <div class="box-header with-border">
                            <h3 class="box-title">友情链接编辑</h3>
                            
                        </div><!-- /.box-header -->
                        <!-- 用户添加表单 start -->
                        <form role="form" action="/admin/conf/link/update" method="post" enctype="multipart/form-data">
                            <!-- 隐藏域 -->
                            {{ csrf_field() }}
                            <div class="box-body">
                                
                                <!-- 隐藏id -->
                                <input type="hidden" name="id" value="{{$data -> id}}">
                                <!-- 隐藏pic -->
                                 <input type="hidden" name="oldlogo" value="{{$data -> logo}}">
                                 <!-- 用户名 -->
                                <div class="form-group">
                                    <label for="exampleInputEmail1">友情链接名</label>
                                    <input type="text" name="linkname" value="{{$data -> linkname}}" class="form-control" id="exampleInputEmail1"
                                           placeholder="请输入友情链接名">
                                </div>
                                
                                <!-- email -->
                                <div class="form-group">
                                    <label for="exampleInputEmail1">友情链接地址</label>
                                    <input type="text" name="url" value="{{$data -> url}}" class="form-control" id="exampleInputEmail1"
                                           placeholder="请输入友情链接地址">
                                </div>
                                <!-- 手机号 -->
                                <div class="form-group">
                                    <label for="exampleInputEmail1">排序</label>
                                    <input type="text" name="order" value="{{$data -> order}}" class="form-control" id="exampleInputEmail1"
                                           placeholder="请输入排序">
                                </div>
                                <!-- 头像上传 -->
                                <div class="form-group">
                                    <label for="exampleInputFile">logo上传</label>
                                    <img src="{{$data -> logo}}" width="200">
                                    <input type="file" name="logo" id="exampleInputFile">
                                    <p class="help-block">请上传正确的图片</p>
                                </div>

                            </div><!-- /.box-body -->

                            <div class="box-footer">
                                <!-- 更新按钮 -->
                                <button type="submit" class="btn btn-primary">更新</button>
                                <!-- 重置按钮 -->
                                <button type="reset" class="btn btn-danger">重置</button>
                            </div>
                        </form>
                    </div><!-- /.box -->
                    <!-- 用户添加表单 end -->






                </div><!--/.col (left) -->
                <!-- right column -->

            </div>   <!-- /.row -->
        </section><!-- /.content -->
    </div><!-- /.content-wrapper -->
@endsection
